$(document).ready ->
	#out = ->
	#	$('#helloPage').slideUp()
	#setTimeout(out,3000);

	$('.dropdown ').hover ( ->
		$(@).addClass('open')
	), ->
		$(@).removeClass('open')

	$('.main_intro').mousemove (event) ->
		moveX = event.pageX/15
		moveY = (event.pageY-66)/15
		$('.bb1').css('background-position': '0px '+moveY+'px')
		$('.bb1').css('margin-left': moveX+'px')

		moveX = event.pageX/25
		moveY = (event.pageY-66)/25
		$('.bb2').css('background-position': '0px '+moveY+'px')
		$('.bb2').css('margin-left': moveX+'px')

		moveX = event.pageX/35
		moveY = (event.pageY-66)/35
		$('.bb3').css('background-position': '0px '+moveY+'px')
		$('.bb3').css('margin-left': moveX+'px')

	$('.mj_i').hover ( ->
		backcolor = $(@).find('div').eq(1)
		color_v = backcolor.css('background-color');
		color_v = color_v.replace('0.6','0.8');
		backcolor.css('background-color',color_v);	
	), ->
		backcolor = $(@).find('div').eq(1)
		color_v = backcolor.css('background-color');
		color_v = color_v.replace('0.8','0.6');
		backcolor.css('background-color',color_v);	

	$('.mj_i').click ->
		$(@).find('.upper_text').toggle('fast')
		$(@).find('.deeper_text').toggle('slow')

	$('.w4_click').click ->
		$('.w4_text').text('361138229');